﻿<%@ Page Language="C#" MasterPageFile="~/App_Master/AdminMaster2.master" AutoEventWireup="true"
    CodeFile="Article_Add.aspx.cs" Inherits="management_Article_Article_Add" Title="创建新闻" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Css/Main.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="HeaderSing">
        <div class="header_Sub font14px clear">
            <ul>
                <li>新闻管理</li>
                <li>新闻列表</li>
                <li>添加</li>
            </ul>
        </div>
    </div>
    <div class="container">
        <div class="gridbox">
            <table width="100%" border="1" cellspacing="0" cellpadding="2" bordercolor="#eeeeee"
                style="border-collapse: collapse;">
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th height="30" align="center" width="20%">
                        文章标题：
                    </th>
                    <td width="40%">
                        <asp:TextBox ID="txtTitle" runat="server" CssClass="txtbox" Width="320px" MaxLength="40" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="标题不能为空！"
                            ControlToValidate="txtTitle" />
                    </td>
                    <td rowspan="7" align="center">
                        图片：
                    </td> 
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th height="30" align="center">
                        推荐：
                    </th>
                    <td>
                        <asp:DropDownList ID="dropCategory" runat="server"/>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请选择分类"
                            ControlToValidate="dropCategory" InitialValue="0" />
                        <asp:CheckBox ID="ckHot" runat="server" Text="是否首页推荐？"/>
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <td height="30" align="center">
                        发布作者：
                    </td>
                    <td>
                        <asp:TextBox ID="txtAuthor" runat="server" Text="admin" MaxLength="20" Enabled="false" />
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <td height="30" align="center">
                        文章来源：
                    </td>
                    <td>
                    <asp:TextBox ID="txtSource" runat="server" Text="本站" MaxLength="50" Enabled="false" />
                       <%-- <asp:TextBox ID="txtOrderID" runat="server" Text="0" MaxLength="8" Width="60px" onkeyup="value=value.replace(/[^\d]/g,'') "
                            onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />(必须为正整数，数越大越考前显示)--%>
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <td height="30" align="center">
                        详细内容：
                    </td>
                    <td colspan="3">
                         <FCKeditorV2:FCKeditor ID="txtContent" Width="99%" Height="300px" runat="server"
                            BasePath="../Web_DllcEditor/" />
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <td colspan="4" align="left" class="Tablefoot">
                        <span>
                            <asp:Button ID="btn_submit" runat="server" Text="提交" CssClass="Submit" OnClick="btn_submit_Click" /></span>
                        <span>
                            <asp:Button ID="LinkButton1" runat="server" Text="提交并新建" CssClass="Submit" OnClick="LinkButton1_Click" Visible="false"/>
                        </span><span>
                            <asp:Button ID="btn_cancel" runat="server" Text="返回" CssClass="Submit" OnClick="btn_cancel_Click"
                                CausesValidation="False" /></span>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
